package zx.x.modules.yshapp.controller;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import zx.x.common.utils.R;
import zx.x.modules.yshapp.entity.CommunityEntity;
import zx.x.modules.yshapp.entity.MemberEntity;
import zx.x.modules.yshapp.service.CommunityService;
import zx.x.modules.yshapp.service.MemberService;

import java.util.Arrays;
import java.util.List;


/**
 *
 * @author x
 * @email x
 */
@RestController
@RequestMapping("yshapp/member")
public class MemberAppController {
    @Autowired
    private MemberService memberService;


    /**
     * 信息
     */
    @RequestMapping("/info/{type}")
    public R info(@PathVariable("type") Integer type){
        List<MemberEntity> memberList = memberService.list(new QueryWrapper<MemberEntity>()
                .eq("delete_flag",0)
                .eq("type",type)
                );

        return R.ok().put("memberList", memberList);
    }



}
